module robot_tb(); 
reg clk; 
reg [7:0] write_data; 
reg cs; 
reg clr_n; 
wire [2:0]pwm_out;
// 瀹氫箟period鍜宲ulse_width瀵勫瓨鍣ㄧ殑鍐呭 
robot robot1(
		.clk(clk),
		.write_data(write_data),
		.cs(cs),
		.clr_n(clr_n),
		.pwm_out(pwm_out)
		);
initial
begin
clk = 0;
   while(1)
#10 clk = ~clk;
end
initial
begin
  cs <= 0;
  clr_n <= 0;
  write_data <= 8'h00;
end
always @(posedge clk) 
	begin
		write_data <= write_data + 40;
	end
always @(posedge clk) 
begin
  $display($time, "It's my first test bench!");
  $display("%t %m ",324,324);
  #20 clr_n <= 1;
  #80 cs <= 1;
  #200 cs <= 0;
  #500 cs<= 0;
  #5000 cs <= 0;
  end
endmodule